#ifndef __SUBSYSTEM_TORCH_BLOCK_BEHAVIOR_H__
#define __SUBSYSTEM_TORCH_BLOCK_BEHAVIOR_H__

#include "SubsystemBlockBehavior.hpp"

namespace PocketSurvival
{
    class SubsystemTerrain;
    
    // 火把和南瓜灯的行为
    class SubsystemTorchBlockBehavior : public SubsystemBlockBehavior
    {
    protected:
        SubsystemTerrain *m_terrain;

    public:

        virtual void onNeighborBlockChanged(int32_t x, int32_t y, int32_t z, int32_t neighborX, int32_t neighborY, int32_t neighborZ) override;

        virtual const std::string& getName() const override;
        virtual void load(const nlohmann::json& json) override;

    public:
        SubsystemTorchBlockBehavior();
    };
}

#endif